package com.course.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.List;

/**
 * 菜单表
 */
@Data
@TableName("sys_menu")
public class Menu {

    @TableId(type= IdType.AUTO)
    private Long id;

    private String name;

    private String component;

    private String path;

    private String icon;

    private String description;

    private Long pid;

    @TableField(exist = false)
    private List<Menu> children;
}
